Loading TOC...

MarkLogic 9 Product Documentation
OPTIONS /manage/v2/meters/labels/{id|name}

Summary

This resource address returns information on the /manage/v2/meters/labels/{id|name} endpoint.

Response

Upon success, MarkLogic Server returns status code 200 (OK) and the information on the labels endpoint.

Required Privileges

This operation requires the manage-user role, or the following privilege:

http://marklogic.com/xdmp/privileges/manage

Example


curl -X OPTIONS --digest -u admin:password \
     http://localhost:8002/manage/v2/meters/labels/3108808182876923314

==>

   <rest:request xmlns:rest="http://marklogic.com/appservices/rest">
     <rest:uri-param name="version">$1</rest:uri-param>
     <rest:uri-param required="false" name="label-id">$2</rest:uri-param>
     <rest:http method="GET HEAD OPTIONS">
       <rest:param name="start" as="dateTime" required="true" default="1970-01-01T00:00:00"/>
       <rest:param name="end" as="dateTime" required="true" default="2013-10-10T13:34:58"/>
       <rest:param name="name" as="string" default="*"/>
     </rest:http>
     <rest:http method="PUT">
       <rest:content-type>application/json</rest:content-type>
       <rest:content-type>application/xml</rest:content-type>
     </rest:http>
     <rest:http method="DELETE"/>
     <rest:param name="format" as="string" values="xml|json|html"/>
     <rest:or>
       <rest:accept>application/xml</rest:accept>
       <rest:accept>application/json</rest:accept>
       <rest:accept>text/html</rest:accept>
     </rest:or>
   </rest:request>
    

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.